<extend name="Public:comment" />

<block name="title">商品列表页</block>

<block name="css">
	<link rel="stylesheet" href="/Application/Home/Common/css/base.css" type="text/css" />
	<link rel="stylesheet" href="/Application/Home/Common/css/shop_common.css" type="text/css" />
	<link rel="stylesheet" href="/Application/Home/Common/css/shop_header.css" type="text/css" />
    <link rel="stylesheet" href="/Application/Home/Common/css/shop_list.css" type="text/css" />
</block>

<block name="js">
	<script type="text/javascript" src="/Application/Home/Common/js/jquery.js" ></script>
    <script type="text/javascript" src="/Application/Home/Common/js/topNav.js" ></script>
    <script type="text/javascript" src="/Application/Home/Common/js/shop_list.js" ></script>
</block>

<block name="shouye">
<div id="shop_hd_menu_all_category" class="shop_hd_menu_all_category"><!-- 首页去掉 id="shop_hd_menu_all_category" 加上clsss shop_hd_menu_hover -->
</block>

<block name="content">
<!-- 面包屑 注意首页没有 -->
	<div class="shop_hd_breadcrumb">
		<strong>当前位置：</strong>
		<span>
			<a href="">首页</a>&nbsp;›&nbsp;
			<a href="">商品分类</a>&nbsp;›&nbsp;
			<a href="">男装女装</a>&nbsp;›&nbsp;
			<a href="">男装</a>
		</span>
	</div>
	<div class="clear"></div>
	<!-- 面包屑 End -->

	<!-- Header End -->


	<!-- List Body 2013/03/27 -->
	<div class="shop_bd clearfix">
		<div class="shop_bd_list_left clearfix">
			<!-- 左边商品分类 -->
			<div class="shop_bd_list_bk clearfix">
				<div class="title">商品分类</div>
				<div class="contents clearfix">
					<dl class=" clearfix">
						<foreach name="classify" item="cl">
						<dt><strong style="font-weight:bolder;font-size:14px;"><a href="{:U('lists',array('fid'=>$cl['id']))}" style="color:#333;"><eq name="cl['lv']" value="1">{$cl.title}</eq></a></strong></dt>
						<dd>
							<span style="clear:both;"><a href="{:U('lists',array('fid'=>$cl['id']))}" style="color:#666;">{$cl['lv']|str_repeat='◆◆◆◆◆',###-1}<egt name="cl['lv']" value="2">{$cl.title}</egt></a></span>
						</dd>
						</foreach>
					</dl>
				</div>
			</div>
			<!-- 左边商品分类 End -->

			<!-- 热卖推荐商品 -->
			<div class="shop_bd_list_bk clearfix">
				<div class="title">热卖推荐商品</div>
				<div class="contents clearfix">
					<ul class="clearfix">
						<foreach name="good" item="go">
							<li class="clearfix">
								<div class="goods_name"><a href="{:U('goods',array('id'=>$go['id']))}">{$go.content}</a></div>
								<div class="goods_pic"><span class="goods_price">¥ {$go.cost} </span><a href="{:U('goods',array('id'=>$go['id']))}"><img src="/Uploads/{$go.pic|substr=###,0,28}" /></a></div>
								<div class="goods_xiaoliang">
									<span class="goods_xiaoliang_link"><a href="{:U('goods',array('id'=>$go['id']))}">去看看</a></span>
									<span class="goods_xiaoliang_nums">已销售<strong>{$go.sales}</strong>笔</span>
								</div>
							</li>
						</foreach>
					</ul>
				</div>
			</div>
			<!-- 热卖推荐商品 -->
			<div class="clear"></div>

			<!-- 浏览过的商品 -->

			<!-- 浏览过的商品 -->

		</div>

		<div class="shop_bd_list_right clearfix">
			<!-- 条件筛选框 -->
			
			<!-- 条件筛选框 -->

			<!-- 显示菜单 -->
			<div class="sort-bar">
				<div class="bar-l"> 
		            <!-- 查看方式S -->
		            <div class="switch"><span class="selected"><a title="以方格显示" ecvalue="squares" nc_type="display_mode" class="pm" href="javascript:void(0)">大图</a></span><span style="border-left:none;"><a title="以列表显示" ecvalue="list" nc_type="display_mode" class="lm" href="javascript:void(0)">列表</a></span></div>
		            <!-- 查看方式E --> 
		            <!-- 排序方式S -->
		            <ul class="array">
		              <li class="selected"><a title="默认排序" onclick="javascript:dropParam(['key','order'],'','array');" class="nobg" href="javascript:void(0)">默认</a></li>
		              <li><a title="点击按销量从高到低排序" onclick="javascript:replaceParam(['key','order'],['sales','desc'],'array');" href="javascript:void(0)">销量</a></li>
		              <li><a title="点击按人气从高到低排序" onclick="javascript:replaceParam(['key','order'],['click','desc'],'array');" href="javascript:void(0)">人气</a></li>
		              <li><a title="点击按信用从高到低排序" onclick="javascript:replaceParam(['key','order'],['credit','desc'],'array');" href="javascript:void(0)">信用</a></li>
		              <li><a title="点击按价格从高到低排序" onclick="javascript:replaceParam(['key','order'],['price','desc'],'array');" href="javascript:void(0)">价格</a></li>
		            </ul>
		            <!-- 排序方式E --> 
		            <!-- 价格段S -->
		            <div class="prices"> <em>¥</em>
		              <input type="text" value="" class="w30">
		              <em>-</em>
		              <input type="text" value="" class="w30">
		              <input type="submit" value="确认" id="search_by_price">
		            </div>
		            <!-- 价格段E --> 
		          </div>
			</div>
			<div class="clear"></div>
			<!-- 显示菜单 End -->

			<!-- 商品列表 -->
			<div class="shop_bd_list_content clearfix">
				<ul>
					<foreach name="res" item="vo">
						<li>
							<dl>
								<dt><a href="{:U('goods',array('id'=>$vo['id']))}"><img src="/Uploads/{$vo.pic|substr=###,0,28}" /></a></dt>
								<dd class="title"><a href="{:U('goods',array('id'=>$vo['id']))}">{$vo.content}</a></dd>
								<dd class="content">
									<span class="goods_jiage">￥<strong>{$vo.cost}</strong></span>
									<span class="goods_chengjiao">最近成交{$vo.sales}笔</span>
								</dd>
							</dl>
						</li>
					</foreach>
				</ul>
			</div>
			<div class="clear"></div>
			<div class="pagination"> 
				<ul><li><span>首页</span></li>
					<li><span>上一页</span></li>
					<li><span class="currentpage">1</span></li>
					<li><span>下一页</span></li>
					<li><span>末页</span></li>
				</ul> 
			</div>
			<!-- 商品列表 End -->


		</div>
	</div>
	<!-- List Body End -->
</block>